home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Columbia Kermit
/
kermit.zip
/
newsgroups
/
misc.19970929-19971216
/
000177_news@newsmaster….columbia.edu _Fri Oct 24 10:22:27 1997.msg
< prev
next >
Wrap
Internet Message Format
|
2020-01-01
|
2KB
Return-Path: <news@newsmaster.cc.columbia.edu>
Received: from newsmaster.cc.columbia.edu (newsmaster.cc.columbia.edu [128.59.35.30])
by watsun.cc.columbia.edu (8.8.5/8.8.5) with ESMTP id KAA07245
for <kermit.misc@watsun.cc.columbia.edu>; Fri, 24 Oct 1997 10:22:26 -0400 (EDT)
Received: (from news@localhost)
by newsmaster.cc.columbia.edu (8.8.5/8.8.5) id KAA00314
for kermit.misc@watsun; Fri, 24 Oct 1997 10:22:25 -0400 (EDT)
Path: news.columbia.edu!watsun.cc.columbia.edu!fdc
From: fdc@watsun.cc.columbia.edu (Frank da Cruz)
Newsgroups: comp.protocols.kermit.misc
Subject: Re: Getting a string from the modem?
Date: 24 Oct 1997 14:22:23 GMT
Organization: Columbia University
Lines: 39
Message-ID: <62qauv$hvv$1@apakabar.cc.columbia.edu>
References: <344FF6BD.65B7@netlink.com.au>
NNTP-Posting-Host: watsun.cc.columbia.edu
Xref: news.columbia.edu comp.protocols.kermit.misc:7957
In article <344FF6BD.65B7@netlink.com.au>,
Ross Irvine <rirvine@netlink.com.au> wrote:
: I like to know how to do this:
:
: output atdt55555\13
: wait for 90 OR wait for CONNECT, BUSY etc.
:
: Basically after the output of the dial I want it to read the first
: line that the modem returns and exit the input so I can process
: if it was CONNECT/BUSY etc. BUT I also need it to timeout after X
: seconds if nothing has been sent from the modem. So there are two exit
: conditions. 1 if it gets something from the modem, and 2 exit after a
: timeout.
:
Current versions of MS-DOS Kermit, K-95, and C-Kermit have a "multiple
input" command, MINPUT:
<send init string and dial command>
MINPUT 90 CONNECT BUSY {NO ANSWER} {NO DIALTONE} ERROR ...
IF FAIL <none of these came from the modem within 90 seconds>
SWITCH \v(minput) {
:1, <have a connection>, BREAK
:2, <busy, try again>, BREAK
:3, <no answer, do something else>, BREAK
:4, <no dialtone, print an informative message>, BREAK
:5, <a bad command was given to the modem>, BREAK
:default, <something I didn't foresee>
}
In addition K95 and C-Kermit have a built-in DIAL command that already
does all this.
See the Kermit website:
http://www.columbia.edu/kermit/
for information about the latest releases of Kermit software.
- Frank